package com.lc.luzhengtang.view;

import android.content.Context;
import android.graphics.Color;

import com.lljjcoder.citypickerview.widget.CityPicker;

/**
 * Created by ${junLong} on 2017/4/19.
 */

public class ShowCityPicker {

    public CityPicker show(Context context){
        final CityPicker cityPicker = new CityPicker.Builder(context)
                .textSize(20)
                .title("")
                .backgroundPop(0xa0000000)
                .titleBackgroundColor("#ffffff")
                .titleTextColor("#000000")
                .confirTextColor("#ff6161")
                .cancelTextColor("#000000")
                .province("黑龙江省")
                .city("哈尔滨市")
                .district("南岗区")
                .textColor(Color.parseColor("#000000"))
                .provinceCyclic(true)
                .cityCyclic(false)
                .districtCyclic(false)
                .visibleItemsCount(7)
                .itemPadding(10)
                .onlyShowProvinceAndCity(false)
                .build();
        cityPicker.show();
        return cityPicker;
    }
}
